package tmproject.hlhj.fhp.cartrans.presenter

import com.example.mymvp.BasePresenter
import tmproject.hlhj.fhp.cartrans.IView.UpdataView
import tmproject.hlhj.fhp.cartrans.javaBean.VersionBean
import tmproject.hlhj.fhp.cartrans.modules.UpdataModule

/**
 * Created by Never Fear   on 2018\8\29 0029.
Never More....
 */
class UpdataPresenter:BasePresenter<UpdataModule,UpdataView>(), UpdataModule.OnVersinoListener {

    override fun createModule() {
        module= UpdataModule()
        module?.listener=this
    }


    override fun gotVersion(versionBean: VersionBean) {
        view?.setVersion(versionBean)
    }
}